<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/12/24
  Time: 14:01
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>addUser</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
    <form action="${pageContext.request.contextPath}/user/updateUser" method="post">
        <div class="form-group">
            <input type="hidden" name="id" value="${needUpdateUser.getId()}">
        </div>
        <div class="form-group">
            <label for="userName">Name</label>
            <input name="name" type="text" class="form-control" id="userName" value="${needUpdateUser.getName()}">
        </div>
        <div class="form-group">
            <label for="userPassword">Password</label>
            <input name="password" type="password" class="form-control" id="userPassword" value="${needUpdateUser.getPassword()}">
        </div>
        <button type="submit" class="btn btn-default">修改用户</button>
    </form>
</body>
</html>
